﻿using System;

namespace Zadani09
{
    public partial class Redir : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
              // volitelne presmerovani
            if (Request["kam"] != null)
            {
                switch (Request["kam"].ToString())
                {
                    case "umelec":
                        LinkButton1.PostBackUrl = "umelec/Default.aspx";
                        break; ;
                    case "admin":
                        LinkButton1.PostBackUrl = "admin/Default.aspx";
                        break; ;
                }
            }
        }
    }
}
